package com.aek.aekdroid;

import eu.erikw.PullToRefreshListView.OnRefreshListener;

public class MatchRefreshListener implements OnRefreshListener {
	public static final String TAG = "FolderRefreshListener";
	private ScheduleActivity activity;

	public MatchRefreshListener(ScheduleActivity activity) {
		this.activity = activity;
	}

	@Override
	public void onRefresh() {
		activity.listMatches.postDelayed(new Runnable() {
			@Override
			public void run() {
				MyLog.d(TAG, "Start Refreshing");
				Helper.updateNow(activity);
			}
		}, 1);
	}
}
